home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
14315
/
14315.xpi
/
content
/
tab.xml
< prev
Wrap
Extensible Markup Language
|
2009-09-14
|
6KB
|
167 lines
<?xml version="1.0"?>
<!--
***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is in file tabbrowser.xml, which was released on March 28, 2001.
- This File copy a part of original code with modification.
-
- The Initial Developer of the Original Code is
- David Hyatt.
- Portions created by the Initial Developer are Copyright (C) 2001
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
- David Hyatt <hyatt@netscape.com> (Original Author of <tabbrowser>)
- Mike Connor <mconnor@steelgryphon.com>
- Peter Parente <parente@cs.unc.edu>
- Giorgio Maone <g.maone@informaction.com>
- Asaf Romano <mozilla.mano@sent.com>
- Seth Spitzer <sspitzer@mozilla.org>
- Simon B├╝nzli <zeniko@gmail.com>
- Michael Ventnor <ventnor.bugzilla@yahoo.com.au>
- Mark Pilgrim <pilgrim@gmail.com>
- Kwan Kai Chung <ZeodoHokil@gmail.com>
-
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- in which case the provisions of the GPL or the LGPL are applicable instead
- of those above. If you wish to allow use of your version of this file only
- under the terms of either the GPL or the LGPL, and not to allow others to
- use your version of this file under the terms of the MPL, indicate your
- decision by deleting the provisions above and replace them with the notice
- and other provisions required by the GPL or the LGPL. If you do not delete
- the provisions above, a recipient may use your version of this file under
- the terms of any one of the MPL, the GPL or the LGPL.
-
- ***** END LICENSE BLOCK *****
-->
<!--
the following code also referenced to Chromin Frame,
developed by Zero Fire, please see
https://addons.mozilla.org/en-US/firefox/addon/10091
-->
<!DOCTYPE bindings [
<!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
%browserDTD;
<!ENTITY % tabBrowserDTD SYSTEM "chrome://browser/locale/tabbrowser.dtd" >
%tabBrowserDTD;
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%brandDTD;
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
%globalDTD;
]>
<bindings id="CFTabBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xbl="http://www.mozilla.org/xbl">
<!--
The following blinding (id tabbrowser-tabs) is copy from tabbrowser.xml,
with modification (onbdlclick callback of tabs-stack changed)
-->
<binding id="tabbrowser-tabs" extends="chrome://browser/content/tabbrowser.xml#tabbrowser-tabs">
<content>
<!-- modification exist in next line -->
<xul:stack flex="1" class="tabs-stack" ondblclick="this.parentNode.tryDlbClickCallback(event);">
<xul:vbox>
<xul:spacer flex="1"/>
<xul:hbox class="tabs-bottom" align="center"/>
</xul:vbox>
<xul:hbox xbl:inherits="overflow" class="tabs-container">
<xul:arrowscrollbox anonid="arrowscrollbox" orient="horizontal" flex="1"
style="min-width: 1px;" chromedir="&locale.dir;"
clicktoscroll="true"
class="tabbrowser-arrowscrollbox"
>
<children includes="tab"/>
<children/>
<xul:toolbarbutton class="tabs-newtab-button"
command="cmd_newNavigatorTab" chromedir="&locale.dir;"
tooltiptext="&newTabButton.tooltip;"/>
</xul:arrowscrollbox>
<xul:toolbarbutton class="tabs-newtab-button" anonid="newtab-button"
command="cmd_newNavigatorTab" chromedir="&locale.dir;"
tooltiptext="&newTabButton.tooltip;"/>
<xul:stack align="center" pack="end" chromedir="&locale.dir;">
<xul:hbox flex="1" class="tabs-alltabs-box" anonid="alltabs-box"/>
<xul:hbox flex="1" class="tabs-alltabs-box-animate" anonid="alltabs-box-animate"/>
<xul:toolbarbutton class="tabs-alltabs-button" type="menu" anonid="alltabs-button"
tooltiptext="&listAllTabs.label;">
<xul:menupopup class="tabs-alltabs-popup" anonid="alltabs-popup"
position="after_end"/>
</xul:toolbarbutton>
</xul:stack>
<xul:toolbarbutton anonid="tabs-closebutton"
class="close-button tabs-closebutton" chromedir="&locale.dir;"/>
</xul:hbox>
</xul:stack>
</content>
<implementation>
<method name="tryDlbClickCallback">
<parameter name="aEvent"/>
<body>
<![CDATA[
if(window.windowState==1)
{
window.restore();
}
else
{
window.maximize();
}
aEvent.stopPropagation();
aEvent.preventDefault();
]]>
</body>
</method>
</implementation>
</binding>
<!--
the following code with id referenced to Chromin Frame,
developed by Zero Fire
-->
<binding id="tab-dbclick-box">
<content>
<xul:stack flex="1">
<xul:hbox flex="1" ondblclick="tryDlbClickCallback(event);"/>
<xul:titlebar flex="1" class="frame-titlebar" ondblclick="tryDlbClickCallback(event);"/>
</xul:stack>
</content>
<implementation>
<method name="tryDlbClickCallback">
<parameter name="aEvent"/>
<body>
<![CDATA[
gChrominFrame.Maximize();
aEvent.stopPropagation();
]]>
</body>
</method>
</implementation>
<handlers>
<handler event="dblclick" button="0" action="tryDlbClickCallback(event)"/>
</handlers>
</binding>
</bindings>